Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: comment naming rule of dom id #8

Merged
merged 2 commits into from
Mar 31, 2023

Conversation

guqing
Copy link
Member

@guqing guqing commented Jan 12, 2023

What this PR does?

修改评论组件插入代码时的 dom id 命名规则,避免同一个页面有多个评论组件时出现 id 冲突导致无法显示的问题

参考: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id

修复页面有多个评论组件时 dom id 冲突导致无法显示的问题

@f2c-ci-robot f2c-ci-robot bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Jan 12, 2023
@guqing
Copy link
Member Author

guqing commented Jan 12, 2023

评论组件的前端部分也需要处理,否则会出现如下错误,导致只能显示一个输入框:
image

@ruibaby

@ruibaby ruibaby mentioned this pull request Mar 28, 2023
f2c-ci-robot bot pushed a commit that referenced this pull request Mar 29, 2023
修复 Emoji 选择组件无法正常初始化的问题。

原因是因为原来使用的 Emoji Mart 库可能会因为多次实例化导致异常,目前暂无解决方案,详情可查阅:missive/emoji-mart#812

目前改为使用 https://github.com/serebrov/emoji-mart-vue-test 代替。

Fixes #7
Ref #8 (comment)

```release-note
修复 Emoji 选择组件无法正常初始化的问题。
```
@ruibaby
Copy link
Member

ruibaby commented Mar 29, 2023

异常的问题已经在 #26 中处理,但目前还有冲突未解决。

/cc @guqing

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Mar 29, 2023

@ruibaby: GitHub didn't allow me to request PR reviews from the following users: guqing.

Note that only halo-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

异常的问题已经在 #26 中处理,但目前还有冲突未解决。

/cc @guqing

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

# Conflicts:
#	src/main/java/run/halo/comment/widget/DefaultCommentWidget.java
@guqing guqing changed the title [WIP] refactor: comment naming rule of dom id refactor: comment naming rule of dom id Mar 30, 2023
@f2c-ci-robot f2c-ci-robot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 30, 2023
Copy link
Member

@JohnNiang JohnNiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Mar 31, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JohnNiang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 31, 2023
@LIlGG
Copy link
Member

LIlGG commented Mar 31, 2023

/lgtm

@f2c-ci-robot f2c-ci-robot bot added the lgtm Indicates that a PR is ready to be merged. label Mar 31, 2023
@f2c-ci-robot f2c-ci-robot bot merged commit c549106 into halo-dev:main Mar 31, 2023
@guqing guqing deleted the refactor/7 branch March 31, 2023 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants